import { xcxAxiosGet, xcxAxiosPost, gwAxiosPost } from '@/api/axios.js'
/**
 * @description: 文件上传
 * @param {*} params
 * @return {*}
 * @author: lizuoxian
 */
export const faceUpload = (params) => {
  return xcxAxiosPost('/rest/customer/faceUpload', params)
}

/**
 * @description: ocr识别
 * @param {*} params
 * @return {*}
 * @author: lizuoxian
 */
export const idCardOCR = (params) => {
  return xcxAxiosPost('/common/idCardOCR', params)
}

/**
 * @description: 中间表存储
 * @param {*} params
 * @return {*}
 * @author: lizuoxian
 */
export const saveProcess = (params) => {
  return xcxAxiosPost('/process/saveProcess', params)
}

/**
 * @description: 中间表缓存记录查询
 * @param {*} params
 * @return {*}
 * @author: lizuoxian
 */
export const findIndexProcess = (params) => {
  return xcxAxiosPost('/process/findIndexProcess', params)
}

/**
 * @description: 中间表缓存详情查询
 * @param {*} params
 * @return {*}
 * @author: lizuoxian
 */
export const getProcessDetailsAddr = (params) => {
  return xcxAxiosPost('/process/getProcessDetailsAddr', params)
}

/**
 * @description: 认证初始化
 * @return {*}
 * @author: lizuoxian
 */
export const attestationInit = (params) => {
  return xcxAxiosPost('/faceDetect/attestationInit', params)
}

/**
 * @description: 人脸认证地址
 * @return {*}
 * @author: lizuoxian
 */
export const getFaceRecognition = (params) => {
  return xcxAxiosPost('/faceDetect/getFaceRecognition', params)
}

/**
 * @description: 人脸认证结果查询
 * @return {*}
 * @author: lizuoxian
 */
export const getFaceResult = (params) => {
  return xcxAxiosGet('/faceDetect/getFaceResult', params)
}

/**
 * @description: 认证状态更新
 * @return {*}
 * @author: lizuoxian
 */
export const attestationUpdate = (params) => {
  return xcxAxiosPost('/faceDetect/attestationUpdate', params)
}

/**
 * @description: 认证状态查询
 * @return {*}
 * @author: lizuoxian
 */
export const queryAttestationList = (params) => {
  return xcxAxiosPost('/faceDetect/queryAttestationList', params)
}

/**
 * @description: 二维码海报
 * @return {*}
 * @author: lizuoxian
 */
export const posterSharing = (params) => {
  return xcxAxiosPost('/poster/posterSharing', params)
}

/**
 * @description: 短信验证码获取
 * @return {*}
 * @author: lizuoxian
 */
export const phoneCode = (params) => {
  return xcxAxiosGet('/rest/user/phoneCode', params)
}

/**
 * @description: 验证码校验接口
 * @return {*}
 * @author: lizuoxian
 */
export const checkPhoneCode = (params) => {
  return xcxAxiosGet('/rest/user/checkPhoneCode', params)
}

/**
 * @description: jssdk授权
 * @return {*}
 * @author: lizuoxian
 */
export const getWeixinSign = (params) => {
  return xcxAxiosGet('/getWeixinSign', params)
}

/**
 * @description: 用户信息查询
 * @return {*}
 * @author: lizuoxian
 */
export const getUser = (params) => {
  return xcxAxiosGet('/rest/user/getUser', params)
}

/**
 * @description: 人脸结果查询
 * @param {*} data
 * @return {*}
 * @author: lizuoxian
 */
export const queryResultPicUrl = (params) => {
  return xcxAxiosGet('/faceDetect/queryResultPicUrl', params)
}
